import math


class PlasmaVolume():
    def __init__(self):
        # http://doctor-network.com/public/littletools/260.html
        # http://cals.medlive.cn/?action=show&key=calc-87&ct=discipline&kt=0
        pass

    def calc(self, data):
        """
        血浆容量
        """
        weight = float(data['weight'])  # 心输出量  Cardiac output
        Hematocrit = float(data['Hematocrit'])  # 红细胞比容百分比
        return {"PV": 0.065 * weight * (1 - Hematocrit)}
